MASTER-K30/50 communication driver

 

MASTER-K30/50 communication driver is the driver to communicate with MASTER-K 30/50 series model PLC of LSIS Co., Ltd.  in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of MASTER-K30/50 communication driver.

<Figure 1>  Read setting example of MASTER-K30/50 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to PLC.

Baud rate, parity bit, data bit, stop bit of MASTER-K30/50 series(for serial communication) are fixed to 9600, 0, 8, 1.

 

MASTER-K30/50 communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – PLC station number.

2) Read memory type – memory type of PLC = (P(input/output), M, L, K, F, T, C, D, S, ...

3) Read start address – reading start address in PLC memory.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – word unit read size.

 

Read schedule example)

READ, 0, M, 0, 0, 2,
READ, 0, L, 0, 2, 2,
READ, 0, K, 0, 4, 2,
READ, 0, F, 0, 6, 2,

 

2. Writing settings

You can set MASTER-K 30/50 PLC by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number.

3)  ADDRESS          write address in memory.

4)  Extra1                   write memory type = P,M,L,K.

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0100, EXTRA1 : M,  EXTRA2 : 0

The setting parameter shown above is a control(On/Off) example of M0100 address.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0000, EXTRA1 : RUN,  EXTRA2 : 0

The setting parameter shown above is PLC run setting example.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number.

3)  ADDRESS          decimal unit write address in memory.

4)  Extra1                   write memory type = P,M,L,K,T,C,D,S.

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0090, EXTRA1 : L,  EXTRA2 : 0

The setting parameter shown above is word unit write setting example of L0090 address.